import React, { useRef } from 'react'

export default function useCommon() {
    const page = useRef();
    const setPage = (currentPage) => {
        page.current = currentPage;
        return page;
    }
    return [page, setPage];
}
